package cn.tiansu.eway.kylinengine.model;

import java.util.List;
import java.util.Map;

/**
 * 维度
 * @author user
 *
 */
public class Dimention
{

	private String dim;
	private List<Map<String, String>> levels;

	public String getDim()
	{
		return dim;
	}

	public void setDim(String dim)
	{
		this.dim = dim;
	}

	public List<Map<String, String>> getLevels()
	{
		return levels;
	}

	public void setLevels(List<Map<String, String>> levels)
	{
		this.levels = levels;
	}

	public String toString()
	{
		StringBuilder sb = new StringBuilder();
		sb.append("dim:");
		sb.append(this.dim);

		sb.append(" levels: ");
		sb.append(levels);

		// if(levels != null && levels.size() > 0)
		// {
		// for (Map<String,String> map: levels)
		// {
		// Iterator<String> it = map.keySet().iterator();
		// wh
		// sb.append(this.dim);
		// }
		// }

		return sb.toString();
	}

}
